const func = function (n) {
    let computResult=1;
    let answer = 0;
    const count=n;
    for (let i = 0; i < count; i++) {
        computResult *= n;
        n--;
    }
    computResult=computResult.toString();
    computResult.split('').forEach(num => {
        if (num === '0') {
            answer++;
        }
    });
    console.log(Number(answer));
};

func(7)

